"""
example07 - 字典的应用

Author: Administrator
Date: 2024/1/17
"""

import string

results = {letter: 0 for letter in string.ascii_lowercase}
# print(results)
content = input('请输入：').lower()
for ch in content:
    if ch in results:
        results[ch] += 1
# print(results)
for key, value in results.items():
    print(f'{key}: {value:>2d}次')